package com.cdn.clock.component;


import java.util.concurrent.TimeUnit;

/**
 * 
 * @author 蔡定努
 *  2024/06/04 11:51
 */
public interface LockComponent {

    public boolean lock(String lockKey,long waitTime, long leaseTime, TimeUnit timeUnit);

    public boolean unLock(String lockKey);

    public boolean forceUnlock(String lockKey);



    public boolean lock(String lockKey, long waitTime, TimeUnit timeUnit) ;

    public boolean lock(String lockKey) ;
}
